package com.ruoyi.yun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunCoufigAlarmconfigMapper;
import com.ruoyi.yun.domain.YunCoufigAlarmconfig;
import com.ruoyi.yun.service.IYunCoufigAlarmconfigService;

/**
 * 报警设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunCoufigAlarmconfigServiceImpl implements IYunCoufigAlarmconfigService 
{
    @Autowired
    private YunCoufigAlarmconfigMapper yunCoufigAlarmconfigMapper;

    /**
     * 查询报警设置
     * 
     * @param id 报警设置主键
     * @return 报警设置
     */
    @Override
    public YunCoufigAlarmconfig selectYunCoufigAlarmconfigById(Long id)
    {
        return yunCoufigAlarmconfigMapper.selectYunCoufigAlarmconfigById(id);
    }

    /**
     * 查询报警设置列表
     * 
     * @param yunCoufigAlarmconfig 报警设置
     * @return 报警设置
     */
    @Override
    public List<YunCoufigAlarmconfig> selectYunCoufigAlarmconfigList(YunCoufigAlarmconfig yunCoufigAlarmconfig)
    {
        return yunCoufigAlarmconfigMapper.selectYunCoufigAlarmconfigList(yunCoufigAlarmconfig);
    }

    /**
     * 新增报警设置
     * 
     * @param yunCoufigAlarmconfig 报警设置
     * @return 结果
     */
    @Override
    public int insertYunCoufigAlarmconfig(YunCoufigAlarmconfig yunCoufigAlarmconfig)
    {
        return yunCoufigAlarmconfigMapper.insertYunCoufigAlarmconfig(yunCoufigAlarmconfig);
    }

    /**
     * 修改报警设置
     * 
     * @param yunCoufigAlarmconfig 报警设置
     * @return 结果
     */
    @Override
    public int updateYunCoufigAlarmconfig(YunCoufigAlarmconfig yunCoufigAlarmconfig)
    {
        return yunCoufigAlarmconfigMapper.updateYunCoufigAlarmconfig(yunCoufigAlarmconfig);
    }

    /**
     * 批量删除报警设置
     * 
     * @param ids 需要删除的报警设置主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigAlarmconfigByIds(Long[] ids)
    {
        return yunCoufigAlarmconfigMapper.deleteYunCoufigAlarmconfigByIds(ids);
    }

    /**
     * 删除报警设置信息
     * 
     * @param id 报警设置主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigAlarmconfigById(Long id)
    {
        return yunCoufigAlarmconfigMapper.deleteYunCoufigAlarmconfigById(id);
    }
}
